package com.iwop.moto.service.impl;

import com.iwop.moto.model.SuperRecordModel;
import com.iwop.moto.service.BaseService;
import com.iwop.moto.service.UnionRegisterService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * liuwb by 2016-10-14 16:55:15 create
 */
@Service
public class UnionRegisterServiceImpl extends BaseService implements UnionRegisterService {

    /**
     * @功能: 新增 用户设置银联开户信息
     * @日期: liuwb by 2016-10-14 16:57:05 create
     */
    public void insert (SuperRecordModel SRModel) {
        getSqlSession().insert("FUnionRegisterMapper.insert",SRModel);
    }

    /**
     * @功能: 新增 用户设置银联开户信息
     * @日期: liuwb by 2016-10-14 16:58:59 create
     */
    public void update (SuperRecordModel SRModel) {
        getSqlSession().insert("FUnionRegisterMapper.update",SRModel);
    }

    /**
     * @功能: 查询 记录
     * @日期: liuwb by 2016-10-14 19:52:19 create
     */
    public List<SuperRecordModel> findUnionRegisterByParams(SuperRecordModel SRModel){
        return getSqlSession().selectList("FUnionRegisterMapper.findUnionRegisterByParams",SRModel);
    }

}
